<%@ include file="/WEB-INF/jsp/includes/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>NoAssertions.com</title>
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/reset.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/text.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/960.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/nastyle.css" />
</head>
<%@ include file="/WEB-INF/jsp/includes/bodyheader.jsp"%>

		<!--  start center section -->
		<div id="centerSection" class="grid_12">	
			<div class="grid_2 alpha">
				<img src="<fmt:message bundle="${mess}" key="baseUrl" />img/spacer.gif"/>			
			</div>
			<div class="grid_8">
			<h2>Similar Fits</h2>
				<div class="indent3">
					<c:forEach var="fit" items="${similarFits}">
					<ul>
						<li><span id="name"><b><a href="<fmt:message bundle="${mess}" key="servletUrl" />home?fitid=${fit.fitid}">${fit.firstname} ${fit.lastname}</a></b></span></li>
						<li>Date of Fit: <span id="dateofmeasurement"><fmt:formatDate value="${fit.dateofmeasurement}" type="date" dateStyle="full" pattern="yyyy-MM-dd"/></span></li>
						<li>Saddle Height: <span id="saddleheight">${fit.saddleheight}</span></li>
						<li>Center to Bars: <span id="centertobars">${fit.centertobars}</span></li>
						<li>Center to Saddle: <span id="centertosaddle">${fit.centertosaddle}</span></li>
						<li>Floor to Saddle: <span id="floortosaddle">${fit.floortosaddle}</span></li>
						<li>Floor to Bars: <span id="floortobars">${fit.floortobars}</span></li>
						<c:choose>
							<c:when test="${empty fit.notes}">
							<li>Notes: No notes associated with this fit</li>
				          </c:when>
				          <c:otherwise>
							<li>Notes: <span id="notes">${fit.notes}</span></li>
				          </c:otherwise>
				        </c:choose>	
						<li><span class="hidden" id="fitid">${fit.fitid}</span></li>
					</ul>
					</c:forEach>
				</div>	
			</div>
			<div class="grid_2 omega">	    
			</div>
		</div>
		<div class="clear"></div>
		<!--  end center section -->
<%@ include file="/WEB-INF/jsp/includes/footer.jsp"%>